import axios from 'axios';
//获取分类的数据
export const getClassify = () => {
    return (dispatch:any) => {
        axios.get('/api/classify').then(res => {
            dispatch({type:'initClassify',classify:res.data})
        })
    }
}